
#!/usr/bin/env node 
const fs=require('fs');
 
const log=console.log;
const fileName=process.argv[2]||_fileName;
let fid=fs.openSync(fileName,'r'),
    size=fs.statSync(fileName).size,
   buf=new Buffer(size);
try{
fs.readSync(fid,buf,0,size,0);
log(buf.toString()'utf8');
}catch(e){
log(e.,message);
}
fs.closeSync(fid);

